package com.heima.model.user.dtos;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "用户关注")
public class UserRelationDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank
    @ApiModelProperty("作者ID")
    int authorId;

    @NotBlank
    @ApiModelProperty("文章ID")
    long articleId;

    @ApiModelProperty("0，关注，1，取消关注")
    short operation;
}
